package com.humanminoritygame.model;

import javax.persistence.Column;
import javax.persistence.Entity;

@Entity
public class Question extends PersistentEntity{
  
  @Column(unique=true)
  private String question;
  private String answerA, answerB;

  Question() {
  }
  
  public Question(String question, String answerA, String answerB) {
    super();
    this.question = question;
    this.answerA = answerA;
    this.answerB = answerB;
  }

  public String getQuestion() {
    return question;
  }

  public String getAnswerA() {
    return answerA;
  }

  public String getAnswerB() {
    return answerB;
  }

  public void setQuestion(String question) {
    this.question = question;
  }

  public void setAnswerA(String answerA) {
    this.answerA = answerA;
  }

  public void setAnswerB(String answerB) {
    this.answerB = answerB;
  }
  
  @Override
  public String toString(){
    return this.question + this.answerA + this.answerB;
  }
  
}
